class DdoFromDb
{
<#list database.tables as table>
static void ${table.ddoName}FromDb(
    ${database.nameSpace}::ddo::T${table.ddoName}Ddo& oDdo,
    c2cent::storage::IResultSet& oRs)
{
    <#list table.fields as field>
    oDdo.Set${field.fieldName?cap_first} = oRs.${field.type.getFromDbFunction}("${field.sqlFieldName}");
    </#list>
    
}
</#list>
};